home *** CD-ROM | disk | FTP | other *** search
/ Eagles Nest BBS 8 / Eagles_Nest_Mac_Collection_Disc_8.TOAST / Developer Tools⁄Additions / MacTCPToolBx / Source Code ƒ / TCPVersion.p < prev   
Text File  |  1989-06-01  |  1KB  |  52 lines

  1. (*
  2.     TCPVersion() -- Return the current version number.
  3.  
  4.     To compile and link this file using Macintosh Programmer's Workshop,
  5.  
  6.         pascal -w TCPVersion.p
  7.         link -m ENTRYPOINT -o HyperCommands -rt XFCN=7865 -sn Main=TCPVersion ∂
  8.             TCPVersion.p.o "{Libraries}HyperXLib.o"
  9.  
  10.     © Copyright 1988 by Apple Computer, Inc.
  11.  
  12.     Initial coding 12/88 by Harry R. Chesley.
  13. *)
  14.  
  15. {$R-}
  16.  
  17. {$S TCPVersion }     { Segment name must be the same as the command name. }
  18.  
  19. unit DummyUnit;
  20.  
  21. interface
  22.  
  23. uses MemTypes, QuickDraw, OSIntf, HyperXCmd;
  24.  
  25. procedure EntryPoint(paramPtr: XCmdPtr);
  26.     
  27. implementation
  28.  
  29. procedure TCPVersion(paramPtr: XCmdPtr); forward;
  30.  
  31. procedure EntryPoint(paramPtr: XCmdPtr);
  32.  
  33.     begin
  34.         TCPVersion(paramPtr);
  35.     end;
  36.  
  37. procedure TCPVersion(paramPtr: XCmdPtr);
  38.  
  39.     procedure Fail(errMsg: Str255); { set theResult and quit }
  40.         begin
  41.             paramPtr^.returnValue := PasToZero(paramPtr,errMsg);
  42.             exit(TCPVersion);
  43.         end;
  44.  
  45.     begin
  46.         if paramPtr^.paramCount <> 0 then Fail('§§§ parameter count is not 0 §§§');
  47.  
  48.         paramPtr^.returnValue := PasToZero(paramPtr,'1.0, 5/17/89')
  49.     end;
  50.  
  51. end.
  52.